#ifndef _RTC_H_
#define _RTC_H_

#include "includes.h"

typedef struct Type_RTC{  
    int8_t Second;  
    int8_t Minute;  
    int8_t Hour;  
    int8_t Day;  
    int8_t Month;  
    uint8_t Year; 
    uint8_t Week;   
}TYPE_RTC;

extern TYPE_RTC g_CurrentRTC;
extern TYPE_RTC g_UserSetRTC;
extern uint8_t g_SetRTCEn;

void rtc_start(void);
time_t unix_time_stamp(int year, int mon, int day, int hour, int min, int sec);

#endif